package main

import "fmt"

func main() {
	mymap := map[string]string {"a" : "apple", "b" : "dollars", "c" : "friend"}

	for k, v := range mymap{
		fmt.Println(k, v)
	}

	mymap["a"] = "applex"
	fmt.Println(mymap["a"])

	delete(mymap, "a")
	fmt.Println(len(mymap))

	mymap["d"] = "iphone"
	fmt.Println(len(mymap))

	_, isExist := mymap["e"]
	fmt.Println(isExist)
}
